//
//  main.cpp
//  Practice2
//
//  Created by 赵世杰 on 2020/6/14.
//  Copyright © 2020 zhaoshijie. All rights reserved.
//

#include <iostream>


using namespace std;

void add();
void sub ();
int getMonth(int year);
float gainHuaCentigrade(float centigrade);
double gainLightYearValue(float lightYear);
string gainTime(int time,int minute);


int main(int argc, const char * argv[]) {
    
    
    /*
    add();
    
    add();
    
    sub();
    
    sub();
    
    int year;
    
    cin >> year;
    
    int month = getMonth(year);
    
    cout << "month:" << month << endl;
    
    
    cout << "Please enter a Celsius Value:";
    
    float centigrade;
    
    cin >> centigrade;
    
    float huaCentigrade = gainHuaCentigrade(centigrade);
    
    cout << centigrade << "degrees Celsius is " << huaCentigrade << " degrees Fahrenheit" << endl;
    
    
    
    cout << "Enter the number of light years : ";
    
    double lightYear ;
    
    cin >> lightYear;
    
    double lightYearVaule = gainLightYearValue(lightYear);
    
    cout << lightYear << " light years = " << lightYearVaule << " astronmical units";
    
    
   
    cout << "Enter the number of hours: " ;
    
    int hours;
    
    cin >> hours;
    
    cout << "Enter the number of minutes:" ;
    
    int minutes;
    
    cin >> minutes;
    
    string timeString = gainTime(hours, minutes);
    
    cout << "Time: " << timeString;
     */
    
    
    
    
    string countString = "4";
    
    int count = stoi(countString);
    
    cout << count;
    
    
    
    return 0;
}


void add ()
{
    
    cout << "three blind mice" << endl;
    
}


void sub ()
{
    cout << "see how they run" << endl;
}


int getMonth(int year)
{
    return year*12;
}


float gainHuaCentigrade(float centigrade)
{
    float huaCentigrade = centigrade*1.8+32.0;
    
    return huaCentigrade;
}

double gainLightYearValue(float lightYear)
{
    double lightYearValue = lightYear * 63240;
    
    return lightYearValue;
    
}


string gainTime(int time,int minute)
{
    string timeString = to_string(time) + ":" + to_string(minute);
    
    return timeString;
}



